#!/usr/bin/python3
#Author:代钰
# -*- coding: utf-8 -*-
# @Time    : 2022/4/1 15:18
# @Author  : Mat
# @Site   : 
# @File    : serializers.py
# @Software: PyCharm
from rest_framework.serializers import ModelSerializer
from .models import Category,Goods,Carousel,GoodsImg,GoodCollect

class CarouselSer(ModelSerializer):
    class Meta:
        model=Carousel
        fields='__all__'


class GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'


class GoodImgSer(ModelSerializer):
    class Meta:
        model = GoodsImg
        fields = '__all__'


class CateSer(ModelSerializer):
    class Meta:
        model = Category
        fields = '__all__'





class GoodCollectSer(ModelSerializer):
    """类别序列化器"""
    class Meta:
        model = GoodCollect
        fields = '__all__'